// 封装本地存储数据与读取数据防范

enum StorageType {
  TOKEN = 'TOKEN',
}
export const SET_TOKE = (token: string) => {
  localStorage.setItem(StorageType.TOKEN, token)
}
export const GET_TOKE = (): string | null => {
  return localStorage.getItem(StorageType.TOKEN)
}
export const REMOVE_TOKE = () => {
  localStorage.removeItem(StorageType.TOKEN)
}
